html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

footer {
    font-size: 85%;
    text-align: center;
    background-color: #f7f7f7;
    margin-top: 3rem;
    text-align: left;
}

.footer-links {
    padding-left: 0;
    margin-bottom: 1rem;
}

.footer-links li {
    display: inline-block;
}

.footer-links li + li {
    margin-left: 1rem;
}

footer p {
    margin-bottom: 0;
}

footer a {
    font-weight: 600;
    color: #495057;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    flex: 0 0 auto;
}

main {
    flex: 1 0 auto;
}

footer {
    flex: 0 0 auto;
}

.announcement p {
    font-weight: 100;
}

#browser-warning {
    border: 4px solid #f7630c;
    border-radius: 8px;
    display: none;
}

.browser-warning-label {
    font-weight: 100;
    margin-bottom: 0;
}

@media screen and (max-width: 320px) {
    /* 在极小屏幕下的特殊处理（如Galaxy Fold） */
    .navbar-brand-text {
        display: none;
    }
}

::selection {
    background: #7c8388;
    color: #fff;
}

.viewer-container.active {
    display: block !important;
}

.skinviewer-container {
    height: 370px;
    margin: 0 auto;
    outline: 0;
}

.skinviewer-container canvas {
    outline: 0;
}

.rawimage-main-container.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.viewer-group {
    width: 100%;
}

#rendergraph-image {
    width: 100%;
    border-radius: 20px;
}

.rendergraph-main-container {
    padding: 0 !important;
    background: transparent !important;
}

.rendergraph-main-container.active {
    display: flex !important;
    flex-direction: column;
    will-change: height;
    min-height: 90px;
    align-items: center;
    justify-content: center;
}

.rendergraph-canvas-container {
    position: relative;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.rendergraph-canvas-container.show {
    opacity: 1;
}

.rendergraph-canvas-container:after {
    content: attr(data-copyright);
    position: absolute;
    bottom: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 9px 15px;
    opacity: 0;
    border-radius: 20px;
    font-weight: 100;
    left: 50%;
    transition: opacity 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    transform: translate(-50%, 50%);
    pointer-events: none;
}

.rendergraph-canvas-container:hover:after {
    opacity: 1;
}

.rendergraph-holder {
    height: 5px;
    flex-wrap: wrap;
}

.rendergraph-control-container {
    width: 100%;
    margin-bottom: 5px;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}

.viewer-loading {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.3, 0, 0.5, 1);
}

.viewer-loading.active {
    opacity: 1;
}

.viewer-loading::before {
    content: "";
    background: #000;
    opacity: 0.5;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
}

.viewer-loading strong {
    margin-left: 5px;
    z-index: 1;
}

.viewer-loading.spinner-border {
    z-index: 1;
}

.viewer-container {
    position: relative;
    overflow: hidden;
    background: #dddfe2;
    border-radius: 20px;
    padding: 10px 20px;
    margin-top: 10px;
    width: 100%;
    display: none !important;
}

.viewer-control-container {
    background: #dddfe2;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 5px;
}

#skin-refresh {
    transform-origin: center center;
    transform: rotate(30deg) translate(3px, -5px);
    cursor: pointer;
    transition: stroke 0.2s cubic-bezier(0.3, 0, 0.5, 1);
    stroke: #6c757d;
}

#skin-refresh:hover {
    stroke: #212529;
}

mark {
    user-select: all;
}

* {
    user-select: none;
}

.uploadskin-model-radio-label {
    margin-right: 10px;
}

.custom-file {
    overflow: hidden;
}

.uploadskin-model-radio-container {
    background: #dddfe2;
    margin-top: 10px;
    border-radius: 20px;
    padding: 10px 20px;
}

.paginate-container .pagination {
    display: inline-block;
}

.paginate-container {
    margin-top: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.pagination .disabled,
.pagination .disabled:hover,
.pagination .gap,
.pagination .gap:hover,
.pagination [aria-disabled="true"],
.pagination [aria-disabled="true"]:hover {
    color: #8d959c !important;
    cursor: default;
    border-color: transparent;
}

.pagination .next_page,
.pagination .previous_page {
    color: #6c757d;
}

.pagination a,
.pagination em,
.pagination span {
    display: inline-block;
    min-width: 32px;
    padding: 5px 10px;
    margin: 0 2px;
    line-height: 20px;
    color: #24292e;
    font-style: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.pagination .current,
.pagination .current:hover,
.pagination [aria-current]:not([aria-current="false"]) {
    cursor: default;
    color: #fff;
    background-color: #6c757d;
    border-color: transparent;
}

.pagination a:focus,
.pagination a:hover,
.pagination em:focus,
.pagination em:hover,
.pagination span:focus,
.pagination span:hover {
    text-decoration: none;
    border-color: #dddddd;
    outline: 0;
    transition-duration: 0.1s;
}

.pagination .previous_page:before {
    margin-right: 4px;
    -webkit-clip-path: polygon(
        9.8px 12.8px,
        8.7px 12.8px,
        4.5px 8.5px,
        4.5px 7.5px,
        8.7px 3.2px,
        9.8px 4.3px,
        6.1px 8px,
        9.8px 11.7px,
        9.8px 12.8px
    );
    clip-path: polygon(
        9.8px 12.8px,
        8.7px 12.8px,
        4.5px 8.5px,
        4.5px 7.5px,
        8.7px 3.2px,
        9.8px 4.3px,
        6.1px 8px,
        9.8px 11.7px,
        9.8px 12.8px
    );
}

.pagination .next_page:after {
    margin-left: 4px;
    -webkit-clip-path: polygon(
        6.2px 3.2px,
        7.3px 3.2px,
        11.5px 7.5px,
        11.5px 8.5px,
        7.3px 12.8px,
        6.2px 11.7px,
        9.9px 8px,
        6.2px 4.3px,
        6.2px 3.2px
    );
    clip-path: polygon(
        6.2px 3.2px,
        7.3px 3.2px,
        11.5px 7.5px,
        11.5px 8.5px,
        7.3px 12.8px,
        6.2px 11.7px,
        9.9px 8px,
        6.2px 4.3px,
        6.2px 3.2px
    );
}

.pagination .next_page:after,
.pagination .previous_page:before {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    content: "";
    background-color: currentColor;
}

@media (max-width: 544px) {
    .userlist-pagination-container .gap,
    .userlist-pagination-container a:not(.next_page):not(.previous_page) {
        display: none;
    }
}
